<style>
    .form-search .layui-form-label {
         display: block;
    }
</style>
<form  class="layui-form layui-form-pane form-search" action="/system/user/index" onsubmit="return false" method="get" autocomplete="off">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">账号名称</label>
        <div class="layui-input-inline">
            <input name="nickname" value="" placeholder="请输入账号名称" class="layui-input">
            <input name="type" type="hidden"  th:if="${type}" th:value="${type}"  class="layui-input">
            <input name="companyId" type="hidden"  th:if="${companyId}" th:value="${companyId}"  class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        <button type="reset" class="layui-btn layui-btn-primary" onclick="$.form.reload();">重置</button>
        <a class='layui-btn layui-btn-sm' th:if="${type=='2'}" th:data-modal="'/system/user/form?type=' + ${type} + '&companyId=' + ${companyId}" data-height="720px" data-width="800px">新增</a>
        <a class='layui-btn layui-btn-sm' th:if="${type!='2'}" shiro:hasPermission="system:user:form"  data-action="/system/user/syncUser" >同步用户</a>
    </div>
</form>